home *** CD-ROM | disk | FTP | other *** search
/ Aminet 45 / Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso / Aminet / game / role / ldmud-3.2-bin.lha / mud / doc / efun / program_name < prev    next >
Text File  |  2001-08-08  |  1KB  |  34 lines

  1. SYNOPSIS
  2.         string program_name()
  3.         string program_name(object obj)
  4.  
  5. DESCRIPTION
  6.         Returns the name of the program of <obj>, resp. the name of the
  7.         program of the current object if <obj> is omitted.
  8.  
  9.         The returned name is usually the name from which the blueprint
  10.         of <obj> was compiled (the 'load name'), but changes if an object
  11.         replaces its programs with the efun replace_program().
  12.  
  13.         As a special case, if <ob> is passed as 0, the function will
  14.         return 0.
  15.  
  16.         The name always ends in '.c'. It starts with a '/' unless the
  17.         driver is running in COMPAT mode.
  18.  
  19.         CAVEAT: This efun swaps in the program if it is swapped out.
  20.  
  21. EXAMPLE
  22.         object o;
  23.         o = clone_object("/std/thing");
  24.         write(program_name(o));  --> writes "/std/thing.c" in !compat mode
  25.                                         and "std/thing.c"  in compat mode
  26.  
  27. HISTORY
  28.         Introduced in LDMud 3.2.6.
  29.         LDMud 3.2.9 allowed a 0 argument.
  30.  
  31. SEE ALSO
  32.         clone_object(E), clonep(E), load_name(E), load_object(E),
  33.         object_name(E), replace_program(E)
  34.